package com.yihaodian.cluster;

import com.google.inject.AbstractModule;
import com.yihaodian.cluster.admin.ClusterAdmin;
import com.yihaodian.cluster.admin.ClusterAdminService;

public class ClusterModule extends AbstractModule {

	@Override
	protected void configure() {
		bind(ClusterService.class).to(DefaultClusterService.class)
				.asEagerSingleton();
		bind(ClusterAdmin.class).to(ClusterAdminService.class)
				.asEagerSingleton();
		bind(ClusterStateLocal.class).asEagerSingleton();
	}
}
